package com.rs.dao;

import com.rs.model.ZhDepartment;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ZhDepartmentMapper {
   
    int insert(ZhDepartment record);


    int updateByPrimaryKey(ZhDepartment record);
    
    /**
     * 增加一条部门信息
     * @param record
     * @return
     */
    int insertSelective(ZhDepartment record);
    
    /**
     * 修改一条部门信息
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(ZhDepartment record);
    
    /**
     * 查询一条部门信息
     * @param deId
     * @return
     */
    ZhDepartment selectByPrimaryKey(Integer deId);
    
    
    
    /**
     * 根据名称查询部门信息
     * @param record
     * @return
     */
    ZhDepartment selectBydeName(ZhDepartment record);
    
    
    /**
     *  删除一条部门信息
     * @param deId
     * @return
     */
    int deleteByPrimaryKey(Integer deId);
    
    /**
     * 查询所有部门信息
     * @param example
     * @return
     */
    List<ZhDepartment> selectByExample();
    
    
}